<?php


namespace App\Admin\Forms\Settings;

class BaseInfo extends BaseForm
{
    public $title = '基本设置';
    protected $type = 'default';
    public $settings = [
        'site_name' => '网站名称',
        'site_logo' => '网站logo',
        'admin_name' => '管理端名称',
        'dept_name' => '学院端名称',
        'user_name' => '科研人端名称',
        'admin_review_name' => '管理端审批名称',
        'dept_review_name' => '学院端审批名称',
        'site_desc' => '网站描述',
        'code_default_mobile' => '验证码接收手机号',
    ];

    public function form()
    {
        foreach ($this->settings as $slug => $label) {
            if($slug == 'site_desc'){
                $this->textarea($slug, $label);
            }else{
                $this->text($slug, $label);
            }
        }
        $this->disableReset();
    }


}
